package de.stalinski.logging;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FrbrLogger {

    private static FrbrLogger Logger;
    public final String LOG_WARN = "WARNING";
    public final String LOG_ERR = "ERROR";
    public final String LOG_INFO = "INFO";

    private FrbrLogger() {
    }

    public static FrbrLogger instance() {
        if (Logger == null) {
            Logger = new FrbrLogger();
        }
        return Logger;
    }

    public void log(String LOG_LEVEL, String message) {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss ");
        Date currentTime = new Date();
        System.out.println(formatter.format(currentTime)+"["+LOG_LEVEL+"]: "+message);
    }
}
